/**
 * 培训计划查看
 */
Ext.define('PJ.view.codtrainingprogram.NoneVersionView', {
	extend: 'AM.default.DefaultWindowForm',
	requires: ['AM.default.jsonp.DefaultSubmitJsonp',
	           'AM.default.DefaultDateField',
	           'AM.default.DateTime',
	           'PJ.view.trainingprogram.ParticipantsNumList',
	           'PJ.view.trainingprogram.OldParticipantsNumList'
	           ],

	modal: true,// 开启不允许点击其他组件
	frame: true,
	notEdit: true,
	isSame: false,
    width: 540,
    height:585,
	layout: 'form',
	overflowX: 'hidden',
    overflowY: 'scroll',
	initComponent: function(){
		var me = this;
		me.items = [{
			xtype: 'container',
			border: false,
			layout: 'column',
    		width:500,
    		defaults:{
    			labelAlign: 'right',
				allowBlank: true,  //红框是否显示
				padding: '5 0 0 0',
				labelWidth: 90,
				readOnly:true,
				columnWidth: .99,
				labelSeparator: ''
			},
			items:[{
    			xtype:"textfield",
        		fieldLabel:"培训班名称:",
        		name:"classNameNew",
        		padding: '0 0 0 0'
    		},{
    			xtype:"textfield",
        		fieldLabel:"计划申请编号:",
        		name:"applyNumNew",
        		blankText:"计划申请编号不能为空!"
    		},{
    			xtype:"textfield",
        		fieldLabel:"承办部委:",
        		name:"undertakeNameNew",
        		blankText:"承办部委不能为空!"
    		},{
    			xtype:"textfield",
        		fieldLabel:"合办部委:",
        		name:"jointNameNew",
        		blankText:"合办部委不能为空!"
    		}/*,{
    			xtype:"textfield",
        		fieldLabel:"计划时间:",
        		name:"planDateNew",
        		maxLength: 50
    		}*/,{
    			xtype:"textfield",
        		fieldLabel:"计划开始时间:",
        		name:"startPlanDateNewStr",
        		maxLength: 50
    		},{
    			xtype:"textfield",
        		fieldLabel:"计划结束时间:",
        		name:"endPlanDateNewStr",
        		maxLength: 50
    		},{
        		xtype:"textfield",
        		fieldLabel:"学制（天）:",
        		name:"planDayNew"
        	},{
        		xtype:"textareafield",
        		fieldLabel:"办班目的:",
        		name:"classObjectiveNew"
        	},{
        		xtype:"textareafield",
        		fieldLabel:"培训内容:",
        		name:"classValuesNew"
        	},{
        		xtype:"textareafield",
        		fieldLabel:"调训对象:",
        		name:"trainingObjectNew"
        	},{
        		xtype:"textfield",
        		fieldLabel:"培训地点:",
        		name:"trainingAddressNew"
        	},{
        		xtype:"textfield",
        		fieldLabel:"联系人:",
        		name:"linkManNew"
        	},{
        		xtype:"textfield",
        		fieldLabel:"联系电话:",
        		name:"linkModeNew"
        	},{
        		xtype:"textfield",
        		fieldLabel:"传真:",
        		name:"faxNew"
        	},{
        		xtype: 'oldParticipantsNumList'
        	},{
        		xtype: 'hidden',
        		name: 'planIdNew'
        	}]
		}];
		this.buttons = [{
			text: '关闭',
			scope: this,
			handler: this.close
		}];
		this.callParent(arguments);
	}
});